package syndicate.gangsters;

import syndicate.gi.*;

import java.util.HashMap;

public class LevGangster implements Gangster {
    private static Integer main;
    private HashMap<Integer, Task> tasks;

    private Integer id;
    private Task myTask;


    public void reinit(UserGameInfo userGameInfo) {
        main = null;
        tasks = new HashMap<Integer, Task>();
    }

    public String getName() {
        return "Winni-The-Pooh";
    }

    public String getSyndicateName() {
        return "Winni-The-Pooh";  //To change body of implemented methods use File | Settings | File Templates.
    }

    public GangsterParams getParams(GangsterSex gangsterSex) {
        return new GangsterParams(1000f, 3f, null);
    }

    public void processEvent(GangsterInterface gangsterInterface, Event event) {
        switch (event.kind()) {
             case EVENT_BORN:
                 GangsterParams gp = (GangsterParams)event.param();
                 id = gp.id;
                 myTask = new Task();
                 tasks.put(id, myTask);

                 if (main != null) {
                     main = ((GangsterParams)event.param()).id;
                 }
             case EVENT_DEAD:
                 //if ()
        }
    }

    public Event makeTurn(GangsterInterface gangsterInterface) {
        System.out.println(gangsterInterface.getMoney(this));
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    private class Task {
        private Location destination;
        private int groupsNumber;
    }
}
